package com.ym.manager.admin.group;

import com.ym.base.BaseDao;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Author 但何非
 * @Date 2022/11/12 21:15
 * @ClassName: GroupMapper
 * @Description:
 * @Version:
 */
public interface GroupMapper extends BaseDao {

    int getListCount(Map<String, Object> map);

    List<GroupInfo> getList(Map<String, Object> map);

    int getUserListCount(Map<String, Object> map);

    List<GroupUserInfo> getUserList(Map<String, Object> map);

    int updateStatus(@Param("id") long id, @Param("status")int status);

    String userCount(@Param("group_id")long group_id);

    int deleteGroupInfo(@Param("id")long id);

    int deleteMembers(@Param("groupId") Long groupId);

    GroupInfo groupInfo(@Param("id")long id);

    int updateName(@Param("id")long id, @Param("name")String name);

    int greopUserDel(@Param("uid")long uid,@Param("groupId") long groupId);

    int updateUserNumber(@Param("id")long id, @Param("number")int number);

    int groupPayUserCount(@Param("id")long id, @Param("beginDay")int beginDay, @Param("endDay")int endDay);
}
